import Model from '@/utils/http.js'
const api = new Model()
// 获取 我的产值
export function getMyOutputValue (){
	return api.get({
		url: '/mine/center/getMyOutputValue'
	})
}
// 算力变动列表
export function hashRateChangeLs(data){
	return api.get({
		url: '/equity/hashRate/change/v1/list',
		data:data
	})
}
// 获取产值规则
export function outputManageLs(data){
	return api.get({
		url: '/mine/center/output/manage/list',
		data:data
	})
}
// 查询椰矿店铺列表
export function activityShopList(data){
	return api.get({
		url: '/shenye/punch/activity/shop/list',
		data:data
	})
}
// 查询椰矿店铺详情
export function activityShopDetail(data){
	return api.get({
		url: '/shenye/punch/activity/shop/detail',
		data:data
	})
}
// 查询店铺打卡活动列表
export function activityShopActivityList(data){
	return api.get({
		url: '/shenye/punch/activity/shop/activity/list',
		data:data
	})
}
// 查询店铺平台打卡活动详情
export function activityPlatformDetail(data){
	return api.get({
		url: '/shenye/punch/activity/shop/activity/platform/detail',
		data:data
	})
}
// 查询店铺第三方打卡活动详情
export function thirdPlatformDetail(data){
	return api.get({
		url: '/shenye/punch/activity/shop/activity/third/party/detail',
		data:data
	})
}
// 查询适用店铺列表
export function activityPlatformUseLs(data){
	return api.get({
		url: '/shenye/punch/activity/shop/activity/platform/use/list',
		data:data
	})
}
// 下单购买
export function punchActivityBuy(data){
	return api.post({
		url: '/shenye/punch/activity/buy',
		data:data
	})
}
// 查询用户平台优惠券
export function couponPlatformList(data){
	return api.get({
		url: '/shenye/customer/coupon/platform/list',
		data:data
	})
}
// 查询第三方优惠券
export function couponThirdlyList(data){
	return api.get({
		url: '/shenye/customer/coupon/thirdly/list',
		data:data
	})
}
// 查询用户平台优惠券详情
export function couponPlatformDetail(data){
	return api.get({
		url: '/shenye/customer/coupon/platform/detail',
		data:data
	})
}
// 退款
export function couponRefund(id){
	return api.put({
		url: `/shenye/customer/coupon/refund/${id}`,
	})
}
// 退款
export function couponUse(id){
	return api.get({
		url: `/shenye/customer/coupon/use/${id}`,
	})
}
// 支付成功回调
export function payReslut(orderId){
	return api.get({
		url: `/shenye/punch/activity/pay/result/${orderId}`,
	})
}
// 获取 积分运营配置
export function getOperationConfiguration(data){
	return api.get({
		url: '/equity/card/donation/getOperationConfiguration',
		data:data
	})
}